<?php
ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';

use Biz\model\trade\Order as mOrder;

$orderNo = isset($argv[1]) ? $argv[1] : "";

//查询子订单基本信息
$orderNoList = mOrder::getOrderNoList($orderNo);

$orderInfoList = mOrder::getOrderInfoList(['order_no' => $orderNoList], [], [], false);

if ($orderInfoList) {
    \Biz\service\erp\Nippon::addOrder($orderInfoList, []);
}
